package corp.edu.amadeus.core.business.locator;

import corp.edu.amadeus.core.business.object.impl.ContentBO;
import corp.edu.amadeus.core.business.object.impl.FileBO;
import corp.edu.amadeus.core.business.object.impl.TextBO;
import corp.edu.amadeus.core.business.object.impl.CompFileBO;
import corp.edu.amadeus.core.business.object.impl.CompTextBO;
import corp.edu.amadeus.core.spring.BeanLocator;

public abstract class ObjectLocator {

	private static String CONTENT_BO_ID = "content";
	private static String FILE_BO_ID = "file";
	private static String TEXT_BO_ID = "text";
	private static String TEXT_COMPONENT_ID = "text_component";
	private static String FILE_COMPONENT_ID = "file_component";

	public static ContentBO getContent() {
		return (ContentBO)BeanLocator.getBean(CONTENT_BO_ID);
	}

	public static FileBO getFile() {
		return (FileBO)BeanLocator.getBean(FILE_BO_ID);
	}

	public static TextBO getText() {
		return (TextBO)BeanLocator.getBean(TEXT_BO_ID);
	}

	public static CompTextBO getTextComponent() {
		return (CompTextBO)BeanLocator.getBean(TEXT_COMPONENT_ID);
	}

	public static CompFileBO getFileComponent() {
		return (CompFileBO)BeanLocator.getBean(FILE_COMPONENT_ID);
	}
}